package org.mmy.mmybackend.ServerFileTransfer.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("file")

public class File{

//生成成员变量声明
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
private String filename;
private String fileUrl;
private String filetype;
private String filesize;
private LocalDateTime uploadtime;
private Integer downloadnum;

//添加无参构造函数
//public File() {}

//添加带参构造函数，处理最后一个参数的逗号问题
//public File(Integer id,String filename,String fileUrl,String filetype,String filesize,LocalDateTime uploadtime,Integer downloadnum) {
//    //        this.id = id;
//    //        this.filename = filename;
//    //        this.fileUrl = fileUrl;
//    //        this.filetype = filetype;
//    //        this.filesize = filesize;
//    //        this.uploadtime = uploadtime;
//    //        this.downloadnum = downloadnum;
//    //    }
}